import {add} from './add.js'
console.log(add(1,2,3));

import {getArrSum} from './tool.js'
console.log(getArrSum([9,8,7]));

import jq from 'jquery'
jq('#myUL>li:odd').css('color', '#8df')
jq('#myUL>li:even').css('color', 'pink')

import "./css/index.css"

import "./less/index.less"

// 引入图片-使用
import imgUrl from './assets/1.gif'
const theImg = document.createElement("img")
theImg.src = imgUrl
document.body.appendChild(theImg)

// 引入字体图标文件
import './assets/fonts/iconfont.css'

// 高级语法
const fn = () => {console.log("箭头函数")}
console.log(fn)